//GEN-BEGIN:Client
/**
 * This file is generated. Please do not change
 */
package co.gov.das.fotogpsserver;

import java.io.*;
import javax.servlet.http.HttpSession;
import java.util.*;

/**
 * Invocation Gateways
 */
public class JavonGateways {
    /**
     *  This class implements the application server connectivity specific to the needs.
     *  co.gov.das.fotogpsserver.AdminConexion
     */
    public static class co_gov_das_fotogpsserver_AdminConexionenviarFoto1Gateway implements InvocationAbstraction {

        /**
         *  This method performs the actual invocation of server functionality. It is
         *  used by the servlet to delegate functionality to external classes.
         *
         * @param input The stream from which we should read the parameters for the methods
         * @return The return value for the method NULL IS NOT SUPPORTED!!!!
         * @throws Exception  Thrown when a protocol error occurs
         */
        public Object invoke(HttpSession session, DataInput input) throws Exception {
            co.gov.das.fotogps.movil.Fotografia fotografia = (co.gov.das.fotogps.movil.Fotografia)Utility.readObject( input );

            co.gov.das.fotogpsserver.AdminConexion instance = (co.gov.das.fotogpsserver.AdminConexion)session .getAttribute("co.gov.das.fotogpsserver.AdminConexion");
            if (instance == null) {
                instance = (co.gov.das.fotogpsserver.AdminConexion) Class.forName("co.gov.das.fotogpsserver.AdminConexion").newInstance();
                session.setAttribute("co.gov.das.fotogpsserver.AdminConexion", instance);
            }
            instance.enviarFoto(fotografia);
            return Utility.VOID_VALUE;
        }

        public int[] getIds() {
            return new int[] {
                8
            };
        };

        public int[] getReturnIds() {
            return new int[] {
                6
            };
        };
    }

    private static Object readObject(DataInput in) throws IOException {
        return Utility.readObject(in);
    }
}
//GEN-END:Client
